
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    const eventChannel = this.getOpenerEventChannel();
    eventChannel.on('dispatchContent', (data) => {
      let { content, title } = data;
      const WxParse = require('../../../wxParse/wxParse.js');
      var that = this;
      that.setData({
        title
      })
      WxParse.wxParse('article', 'html', content, that, 5);
    })

  },

// 返回
    goBack() {
        wx.navigateBack({
            delta: 1
        })
    }
})